import styled from 'styled-components'
import homeBanner from '@/assets/img/other/index_banner.png'
import { CardRadiusShadow } from '@/constants/style-const'

export const HomeStyle = styled.div`
	padding-bottom: 16px;
	.banner {
		width: 100%;
		height: 220px;
		text-align: center;
		margin-bottom: 15px;
		border-radius: 10px;
		background: url(${homeBanner}) no-repeat center;
		background-size: 100% auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.banner_title {
			color: #fff;
			font-size: 40px;
			font-weight: bold;
			text-shadow: 2px 2px 2px #409eff;
		}
		.banner_text {
			color: #fff;
			margin-top: 20px;
			font-size: 24px;
		}
	}
	.home-data {
		width: 100%;
		display: flex;
		gap: 15px;
		margin-bottom: 15px;
		.chart-box {
			flex: 1;
			height: 250px;
			padding: 30px;
			${CardRadiusShadow}
		}
	}
`

export const CardBoxStyle = styled.div`
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	.circle-iconfont {
		font-family: 'home-iconfont' !important;
		font-size: 20px;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-webkit-text-stroke-width: 0.2px;
		-moz-osx-font-smoothing: grayscale;
	}
	.card-title-box {
		display: flex;
		justify-content: space-between;
		width: 100%;
		height: 40px;
		.circle {
			display: flex;
			justify-content: center;
			align-items: center;
			width: 40px;
			height: 40px;
			border-radius: 50%;
			color: #fff;
			margin-right: 10px;
		}
		.people-circle {
			background-image: linear-gradient(145deg, #fff720 0%, #3cd500 100%);
		}
		.order-circle {
			background-image: linear-gradient(145deg, #6b73ff 0%, #2d8cf0 100%);
		}
		.pay-circle {
			background-image: linear-gradient(145deg, #fccf31 0%, #f55555 100%);
		}
		.sale-circle {
			background-image: linear-gradient(145deg, #2d8cf0 0%, #9708cc 100%);
		}
		.card-title {
			flex: 1;
			height: 100%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			color: #595959;
			font-size: 16px;
			.card-title-btn {
				cursor: pointer;
				height: 30px;
				line-height: 30px;
				padding: 0 10px;
				font-size: 13px;
				border-radius: 15px;
				background: #ededed;
			}
		}
	}
	.card-number {
		.icon {
			vertical-align: middle;
			font-size: 24px;
		}
		.number {
			font-size: 36px;
			font-weight: bold;
			vertical-align: middle;
		}
	}
	.card-info {
		.info {
			vertical-align: middle;
			margin-right: 5px;
		}
		.message {
			vertical-align: middle;
			font-size: 14px;
		}
	}
	.up {
		color: #3cd500;
	}
	.down {
		color: #ff1943;
	}
`
export const ChartBoxStyle = styled.div`
	display: flex;
	gap: 15px;
	width: 100%;
	height: 350px;
	.chart {
		width: 40%;
		${CardRadiusShadow}
		.title {
			height: 50px;
			line-height: 50px;
			padding: 0 20px;
			font-size: 16px;
			border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		}
		.chart-box {
			width: 100%;
			height: calc(100% - 50px);
		}
	}
	.line-chart {
		width: 60%;
	}
`
